<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

//岳椿霖登陆
Route::any("HomeLoginArticle",[\App\Http\Controllers\Admin\LoginHome::class,"HomeLoginArticle"])
    ->middleware(\App\Http\Middleware\CheckApiLogin::class)->middleware('throttle:2.1');

Route::any("HighchartsHose",[\App\Http\Controllers\Admin\LoginHome::class,"HighchartsHose"]);
Route::get('GoodsList',[\App\Http\Controllers\GoodsController::class,'GoodsList']);

// ES添加
Route::post('orderCreate',[\App\Http\Controllers\GoodsController::class,'orderCreate']);
// ES 搜索
Route::get('listd',[\App\Http\Controllers\GoodsController::class,'listd']);
// 导出
Route::get('exports',[\App\Http\Controllers\GoodsController::class,'exports']);
//签到功能
Route::get('signin',[\App\Http\Controllers\GoodsController::class,'signin']);
//初始化
Route::get('signinin',[\App\Http\Controllers\GoodsController::class,'signinin']);

Route::get('sign',[\App\Http\Controllers\GoodsController::class,'sign']);
Route::get('/add',[\App\Http\Controllers\Api\ShopTtpeController::class,'add']);

Route::get('good/second',[\App\Http\Controllers\Api\ShopTtpeController::class,'Sencond'])->name('good.second');

Route::get('good/third',[\App\Http\Controllers\Api\ShopTtpeController::class,'Third'])->name('good.third');

Route::get('/good/list',[\App\Http\Controllers\Admin\ShopController::class,'ShopList']);

Route::get('/shop/change',[\App\Http\Controllers\Admin\ShopController::class,'change'])->name('shop.change');

